package com.pajk.user.dal.mapper;

import java.util.Map;

import com.pajk.user.model.User;
import org.apache.ibatis.annotations.Param;

/**
 * Created by haomin on 3/18/14.
 */
public interface UserMapper {

    User getUserById(@Param("userId") Long userId);

    User getUserByMobile(@Param("mobile") Long mobile);

    User getUserByWanliId(@Param("wanliId") String wanliId);

    void updateUserById(Map map);
    
    void updateWanliCreditsById(Map map);
    
    void insertUser(User user);
    
    void updateUserCreditById(Map map);
}
